How to convert an array of objects to object

visit shbcf.ru